package com.hsylient.javase.chapter01;

import org.junit.Test;

/**
 * 数据类型：Boolean 源码分析
 */
public class MyBoolean {

    @Test
    public void testField() {
        System.out.println(Boolean.TRUE);
        System.out.println(Boolean.FALSE);
        System.out.println(Boolean.TYPE);
    }

    @Test
    @SuppressWarnings("all")
    public void testMethod() {
        System.out.println(Boolean.parseBoolean("True"));
        System.out.println(Boolean.FALSE.booleanValue());
        System.out.println(Boolean.valueOf("True"));
        System.out.println(Boolean.logicalAnd(true, true));
        System.out.println(Boolean.logicalOr(false, true));
        System.out.println(Boolean.logicalOr(false, false));
        System.out.println(Boolean.TRUE.compareTo(Boolean.FALSE));
    }
}
